package kr.ac.postech.marathon.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.VerticalPanel;


/** Header contains the logo image and the main menus. */
public class Header extends Composite {
	
	private VerticalPanel vPanel = new VerticalPanel();
	
	public Header() {
		// Set the default alignment
		vPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		
		// Construct the logo image
		vPanel.add(new Image("images/logo.gif"));
		
		// Adding the menu
		vPanel.add(new Menu());
		
		
		vPanel.setWidth("100%");
		
		initWidget(vPanel);
	}
}
